<?php
// @formatter:off
/**
 * @file advert.php
 * @author Alejandro Dario Simi
 * @date $Date: 2013-05-24 23:14:00 +0000 (Fri, 24 May 2013) $
 *
 * $Id: advert.php 66 2013-05-24 23:14:00Z daemonraco@gmail.com $
 * $URL: http://wcomix.googlecode.com/svn/tags/wcomix-1.0-BETA1/extensions/GoogleAdSense/advert.php $
 */
// @formatter:on

function GoogleAdsense_linkChecker() {
	//
	// Only index, mobile and others are not allowed.
	$ok = defined("__INDEX__");
	//
	// Ok, everything ok.
	if($ok) {
		global $wcThemeAssigns;
		global $wcDefaults;

		if(!isset($wcDefaults["google_ad_client"])) {
			//
			// HA HA, you didn't set it, now it's mine.
			$wcDefaults["google_ad_client"] = "ca-pub-6509066186475516";
		}
		if(!isset($wcDefaults["google_ad_slot"])) {
			//
			// This is mine too.
			$wcDefaults["google_ad_slot"] = "6021038408";
		}

		$wcThemeAssigns["google_ad_client"] = $wcDefaults["google_ad_client"];
		$wcThemeAssigns["google_ad_slot"] = $wcDefaults["google_ad_slot"];

		$ok = true;
	}

	return $ok;
}
?>